import { h } from "vue";
import { ContainerOutlined, ReadOutlined, ShopOutlined, FileAddOutlined, HddOutlined } from "@ant-design/icons-vue";

export default {
  key: Math.random() + "",
  label: "生产资料管理",
  title: "生产资料管理",
  icon: () => h(ContainerOutlined),
  children: [
    {
      key: Math.random() + "",
      label: "药品品种管理",
      title: "药品品种管理",
      icon: () => h(ReadOutlined),
      children: [
        {
          key: Math.random() + "",
          label: "药材品种目录",
          title: "药材品种目录",
          url: "/medicinalDir/medicinalDirList",
          code: "medicinalDirList",
        },
        {
          key: Math.random() + "",
          label: "药材品种配置",
          title: "药材品种配置",
          url: "/medicinal/medicinalList",
          code: "medicinalList",
        },
      ],
    },

    {
      key: Math.random() + "",
      label: "产品管理",
      title: "产品管理",
      icon: () => h(ShopOutlined),
      children: [
        {
          key: Math.random() + "",
          label: "鲜品名录",
          title: "鲜品名录",
          url: "/productInit/productInitList",
          code: "productInitList",
        },
        {
          key: Math.random() + "",
          label: "产品名录",
          title: "产品名录",
          url: "/product/productList",
          code: "productList",
        },
      ]
    },
    {
      key: Math.random() + "",
      label: "投入品管理",
      title: "投入品管理",
      icon: () => h(FileAddOutlined),
      children: [
        {
          key: Math.random() + "",
          label: "名单管理",
          title: "名单管理",
          url: "/input/blackWhiteList",
          code: "blackWhiteList",
        },
        {
          key: Math.random() + "",
          label: "物料管理",
          title: "物料管理",
          url: "/input/materialList",
          code: "materialList",
        },
        {
          key: Math.random() + "",
          label: "出入库管理",
          title: "出入库管理",
          url: "/input/storageList",
          code: "storageList",
        },
        {
          key: Math.random() + "",
          label: "投入品库存",
          title: "投入品库存",
          url: "/input/storageStatisList",
          code: "storageStatisList",
        },
      ]
    },

    {
      key: Math.random() + "",
      label: "规范管理",
      title: "规范管理",
      icon: () => h(HddOutlined),
      url: "/materialSpec/specList",
      code: "materialSpecList",
    }
  ],
};
